Eliminate duplication using shared example