Writing software is one thing, maintaining it is another. It requires planning, dedication and it might involve repetitive work. Quality software reduces the overall maintenance pressure during the lifetime of a piece of software. But even then, maintenance will always be part of it. Plan it, live with it. Even better, enjoy it.