Trying to refactor DeriveAnyClass, stuck on typechecker-related code