Refactors complex method Sanitizable::Model._sanitize_attributes