build: remove dependency on Flow