Remove redundant code in recipe