Would this be clearer in an initializer?  Even if it has to switch on Rails.env...