Move function above first use in bootstrap.