Refactored process_capabilities into a class singleton.