Remove unused `initialize_attributes` method

This was previously a hook for a special case related to `serialize`,
which has since been removed.
Merge pull request #15475 from sgrif/sg-initialize-attributes

Remove unused `initialize_attributes` method