Today I learned some of my team has been using deploy scripts in #TeamCity to rewrite code for test sites and special builds.
I cannot stress enough how bad of a habit this is. If you are redirecting code, it should be done via configuration file changes not find/replace powershell scripts run on the codebase. This should be treated as dangerous since it could be used to circumvent security reviews if it happened on the production configuration.