Refactor code to place several constants in shared locations