Issue 1058: added factory for labels