Created function to consolidate targets for effects that are identical.