lxlfw: move code opening LXL to helper function