core: context: cleanup buildSequence

Change-Id: I31f95bc1331bc066e25b777a73b10c0ef84734b2
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>