deduplicate code snippet
Merge pull request #27 from t3d/master

minor recipe change