No, its not needed, but you need seperate layers for the line and the area as you cannot simply use the area surroundings for the line as this would create a polygon. 

Maybe the same class could be used for both purposes but then you have to find a way to handle the layers for the lines and the area.