Remove Rails constant dependency