Refactor pending method to reduce duplication.