Changing the hierarchy of components

Signed-off-by: Marcin Wiatr <mail.wichura@gmail.com>