Cleaned up internal ScmWriteContext handling