Remove copy/paste code from inspect