There sure is a TRICK it is called proper sizing of piping and no excessive runs proper supports and 4 fitting swing for hot water piping to allow for expansion and contraction.
Keeping velocity to with recognized guide lines is a plus for a great long lasting QUIET system
Try this linkit gives you an idea of the reasons and cures
DISCLAIMER
All advice is given with-out seeing the job, and hence all advice MUST be taken as advice with limited knowledge on the exact situation. NO responsibility can or will be taken. And yes, I am a licensed plumber with my own business in Brisbane Australia