remove cortex.dependencies and the whole cortex field