Don't duplicate code. Create intermediate document, which is then parent to both hugs and runs.