rewrite: extract parameters from literals