So, this is a hack right now, but it won't change when we continue with the refactor since this is a frontend thing. You should add this as an API call for the backend instead of one of the hacks.