Pull out foo and bar into local variables.