File controller clean code