Move getClasses into a different file

Signed-off-by: Ian Macalinao <ianmacalinao@gmail.com>