Remove unused def.
register-environment! is a function.