Refactor duplicate path strings

Introduce local variables to refactor out duplication of path strings. These values could be further refactored out into their own functions for further re-use / less duplication.