Remove protected_attributes and comment out deprecations