Move standard handle setup to a better place.