Refactoring SimpleFunction registration