Refactor hard-coded URLs out of template