"return selenium_popEvent()" you use this line a lot. Could you consider moving it to ClickTrackingScrpitsProvider() or if it is used only in PageObjects you can move it to class protected field