Refactor Transition Helpers

Creates new transition helpers, grouped in an object literal, and
refactors them to be highly reusable and unaware of the collapsible
internals.

Replaces calls to old helpers and verify everything still works the
same. Deletes old helpers.