The Flash was easily the most contentious part of the fairly unlucky DC Extended Universe, namely due to its star. The controversies surrounding Ezra Miller were just part of the reason why the movie was seen as fairly disappointing to fans. Now, Miller and other major stars from the DCEU are being recast for the DC Universe reboot, though this perhaps may be too late for the Fastest Man Alive.
Source:https://www.cbr.com/ezra-miller-removed-from-flash-good-for-dcu/