Moves require_directory into a helper