Forming valves or applying valve inserts