Add StudentSelection service and refactor to use it
Refactor student selection functionality