Ramp: smaller intersection code + factorize