Split up applyRollToFrame into multiple equations using pattern matching on Frame