Extract code from controller to model factory

Extrac method to user (from controller)
Fix specs in themes bootstrap views