factor twice-used String literal 'resourceBase' into String constant