Remove usage of deprecated '__proto__' when creating objects