Unnecessary dictionary removal in objects creation