Move attention getter from root to components

in order to allow easier customization.