Split cookbook path array construction to helpers