Wrap code in a class to share config between methods.