Extract duplicate code