Migrate to pipes