Remove #setup method, which is deprecated in Rails 4.
Moved "setup deprecated" conditional into a constant.