refactor(Dispatcher): Move static func map out of loop