Refactoring the environment to extend the core object.