vp3: Factor out expression