Move grains access from module to state file.