Simplify mouse handler creation