Extract path getter to separate method