Small refactor

Removed magic string, and renamed function to match it's purpose