xbps-src: move helpers to environment; there's no need to have them.

Those helpers were just setting up some extra functions that can be used
on templates, and this can be done already via environment, so let's remove
the helpers completely.