Extracted common sharing routines