Decaf cleanup: move functions to top level
Decaf cleanup: move functions to top level

sharelatex/document-updater-sharelatex,sharelatex/document-updater-sharelatex,sharelatex/document-updater-sharelatex