Remove unnecessary castings
Remove unused newInstance() method