As part of further refactoring work, this pulls out common driver code into its own file to better organize the code. Change-Id: Ib5b52b638e27743d86106cc9859f8adeab2aab08 Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>