Remove use of deprecated serialized_attributes method