removing redundant variables in 'sourceType' getter