Closes https://github.com/twentyhq/core-team-issues/issues/583 - Split hook into smaller hooks - Create tests