# Refactor Request Find and remove duplicated logic across these files: [List files here, e.g. src/cart.js, src/checkout.js] ## Objectives - Extract shared logic into well-named helper functions. - Put helpers in [location, e.g. src/lib/]. - Add a short comment to each helper. ## Constraints - Behavior must stay identical. - Show a before/after summary of what moved where.
Write better AI coding prompts and get working code on the first try — free at zoeyprompts.com.