Removing unnecessary class from collections package