Move ReactiveCocoa code to Objective C to circumvent Swift pointer errors.