Extract common methods to abstract class