engine: Extract common builder methods to base class

Couple of methods are moved to the base class so they
can be reused by other builders.

Change-Id: Ia67531b028ef698d3f1dd98657ccb93e00b30415
Signed-off-by: Moti Asayag <masayag@redhat.com>