Rolled the grain's environment into its own class, hopefully thereby improving flexibility