The main purpose of this checkin is to get rid of calls to get_material() as well as the function definition.

If those involved are still okay with me going forward with making materials some form of collection, this function has to go, but we might need other functions and datatyping to take its place.