Remove some duplication from Refinery::Resources