Just work on them anyway, save the code, and follow the ticket. Once it's in the sprint, copy+paste and commit.
I guess if you have a tendency to automate yourself out of a job, it's inevitable that you'll end up somewhere so dysfunctional that it's impossible to do so.
think of a handyman that works so efficiently that he effectively has no margin.