Refactored recipe registering.