Fix projects' Code Contracts
Nullify factory after service has been created