Prince William has been focusing much of his royal work on ending homelessness for years.