Diagram model optimization. Validation rules optimization. Shared resources were removed from process context