Move utility methods to dawnsci.common.widgets