Convert the text layer builder to a class