Use constants for readability.

Use active record relation to improve readability.