@zensoup In the case of a one-off script maintainability would usually require adding some more scaffolding around things, considering more error conditions, adding proper testing etc.
In something that is already something we'd call an application and is already using good engineering practices, keeping complexity and scope at bay, things for which lines of code are a proxy, is how we keep potential maintenance effort down.