Refactored that the DependencyFactory class was removed at the RandomIdGenerator class.