DRY up use of paths