Refactor: Pushed Cocoa progress logic out of UI code.