XNAT-2987: (Improvement - InProgress) Refactor controller classes by making them object-oriented.