Refactored NymiDetectionViewController to be more functional