Refs #4087, remove recursive links and create/remove them only when doing UI tests.