Fix Rails Best Practices warnings