Small style change

My coding style is based on FreeBSD's style(9), which states:

"The function type should be on a line by itself preceding the function. The
opening brace of the function body should be on a line by itself."
Factor out itemtype identification