Moved gesture -> action mapping outside of extension