Enables 2 more C# refactor functions in code. They're ready to be tested in canary. Improves the precommit script in devcontainer.