Extract shared code.