Start introducing hp_function_map to reduce code duplication.
Refactor filters to use function_map abstraction.
Refactor argument_functions option to use new function_map datastructure.