Factor out paste-username