In the first case, use 'former'. In the second case, you can use neither, since the two sentences are too far apart and the text too involved for the reader to realize that they are being compared-- in the second case, you will have to reorganize the text.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.