Refactor how Mac frameworks are handled.