Move setup method to base class

Signed-off-by: Michal Čihař <michal@cihar.com>