Yes, the reason I split it out was that there is a lot of extra sir-trevor specific validation going on in the function above.

Perhaps we should wrap everything but the event handlers into a plugin (that we can call on the selector) and then the event handlers can be chained off of that?