Remove unnecessary list instantiations.