move LS factory out of controllers