I'm not sure how to rewrite this to be more elegant without creating a datum recipe system, which seems like overkill