split trait out of spec class