Factor common parts of synonym/alias

parent cf978224
Pipeline #820 passed with stage
in 8 minutes and 16 seconds