Refactor recipe registration class