Refactored transition mixins.