A lightweight layout factory