remove obtain_from_generic from examples and unit tests