Code cleanup in recipe parse