This function should probably be deprecated in favour of `h.get_action` too but we can do that in 2.2