Optimize AddressObservationWriter, formerly had a lot of redundant code.

Change-Id: Ide834265c27ef1e9425563d9c78ccb12e56fc420
Signed-off-by: Alex Fan <railor33@gmail.com>