It would be a pretty trivial change to revert, but this is almost exactly that code that WAS in the mapgen file - Removing it would basically be re-adding it in a different, even less correct place. It's only here in this file in the first place for testing purposes (I want to make sure the application is actually using the new interface, so I know if it breaks, so I took a place that clearly shouldn't be creating a list of cans and moved it here instead), but it's required for the application to function with the other changes made (i.e. having the application use the new interface).

I'd rather have the temporary code here in the item manager until the next stage, where it will be trivial to swap out for something better, rather than out in the mapgen.