Remove lots of unnecessary smart pointer configuration.