Moving shift left operation to be reusable.