Strip out chatty print lines from non-main() classes