factor out Fun mix-in

Signed-off-by: Akira Hayakawa <ruby.wktk@gmail.com>
factor out isInline()

- Add initializer to Fun class

Signed-off-by: Akira Hayakawa <ruby.wktk@gmail.com>