private function getCallbackFromRecipes($key, array $recipes = null)
    {
        $recipe = null;
        if (isset($recipes[$key]) && is_callable($recipes[$key])) {
            $recipe = $recipes[$key];
        }

        return $recipe;
    }