#53: Moved common util code from various util classes to common-util.