Switched from macro to grains.filter_by for the lookup table