Refs #9369 Move linking method to outside fillHistory.

This needs to be outside fillHistory so that it can be overridden in
concrete algorithms without have to reimplemented the linking.