remove conditional logic on rack rewrite