Refactoring
Object
revert recent change to the 'cleanPrototype' and separate new function 'clearPrototype' to achieve the desired result (empty object)