Very little of what I write is so specialized that no part of it involves anything that might be useful in different contexts. Some parts, yes, of course. When I see something I'd like to use again and again in different contexts, I implement that component as a module.
By publishing a module as FLOSS, it becomes extremely simple to install. And these modular components join the grand, continually evolving chain of FLOSS tools.
At first it was kind of a nuisance to go through this process. Now it's almost automatic, and very fast and easy. What I found useful to me might be useful to others some day.