Center align mode for banners on iOS and code refactoring