selftests: pmtu: Move route installs to a new function