Generalize behavior to helper. Resolves #11.