It's used in various other places as well. This definitely needs a cleanup