Remove deprecated code when instance at new object