No need for breaking backwards compatibility here - encapsulating the logic for `getAttributes()` in one place turns out to be quite useful. Refs #1931.