Drop legacy support

Since we dropped Rails 2 and 3 support, I guess we could reduce some code for legacy support.