:gb: Refactored behaviours to define implementation in a closure