Remove unused redirect code