Used 'with' in factory.d as suggested in the D forum to reduce the number of characters