writerfilter: refactor to avoid redundant FSPA class in doctok

Change-Id: Ic546c62ec24ef3c6b9189ba8378686a6f94714dc