Removed old code from the diagrams backend.