Snippet · Writing & changing code
Make it smaller
Refactor without silently changing behaviour or breaking your other files.
Refactor this file. Constraints: - Behaviour must not change. If you think a behaviour is a bug, flag it, don't silently fix it. - No new dependencies. - Keep the same public function/export names so my other files still work. - Show me the full new file, then a short list of what you changed and why. <paste file>