Move replacePathWithParams to Router