Removed more documents code from the core