Extract interface

Required to create mock object for testing