Refactoring of story progress functions so that they are reusable across different controllers