steps: Extract common parts to abstract class