Move scalar immediate shift lowering into a dedicated func

- no functionality change