The threat of someone rewriting your code might be a good way spawn a good engineering discussion. If the discussion is constructive you might even improve the team and the code. But if micro management and lack of delegation results in frequent rewrite discussions, that will kill motivation for sure.