Rails 3.x: Remove no longer needed codes