[diagnostic] moved diagnostic in separate subdirectory to ensure better modularity in the future