Break out inline method _get_schema

Partially implements blueprint refactor-datasource-driver-framework

Change-Id: Ib7daa74d3ff5d4d5a11ee565ea38cc9c7303feae
Merge "Break out inline method _get_schema"