Extract Firefox app basic logic into its own class