Abstract this out.

Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
Hide "X set a goal of". Thanks to Evren UYANIK <evrenuyanik@gmail.com>

Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>