Move flate from core to std