could be a style debate, but I think these types of val declarations should go at the top of the class/object.