Refactoring package core for gooop.