Extract registerCreator method

Make it easier to register a custom creator.