Separate code for listing optional deps