Move responsibility of path creation to another class