Move styleContainer method to styler object.