Remove get_current_screen()

Remove variable and call for get_current_screen
Conditionally include edit-post.php

Conditionally load ‘includes/edit-post.php’ only if the URI matches one
of the specified paths, indicating the user is editing a post.