Switch Trampoline from an OO approach to a functional style.