Did refactoring; devided parseFunc().

Signed-off-by: Kouhei Maeda <mkouhei@palmtb.net>