Per @adaburrows move the get_node get_group get_class methods to a shared helper file.