Small refactoring to be able to work with ID instead of autogenerated slug.