DRY the code.