ADD Extract the Keystone Mock to a utility module

Extract mocks to a utility module.