Six Flags is selling the Great Escape and six other theme parks to EPR Properties, another theme park operator.