Neapolitans traditionally bought pasta mista, a bag of broken leftover shapes, cheaply for dishes like this.
Nothing wasted.