Make syntax of factory a little easier