They've got their own standards.  They decided a few years ago that they weren't going to use foam for any new attractions, but that everything already installed was fine.  There's nothing illegal or even inherently dangerous about it, particularly with the fire suppression systems in place.  For whatever reason though, Village have decided that it has to be removed immediately, even though they're not ready to replace it.