Now that it is used in multiple places, not just one, you should probably extract the logic for building that path into a separate method.