Removing spurious brackets in class definitions