Split focus listener into its own class.