• I separated them into common codes. This is good for code consistency.

this is my first pull-request. I will be active in the future :)

with @J-unStiN

Comment From: pivotal-cla

@Shinjinsik123 Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

Comment From: pivotal-cla

@Shinjinsik123 Thank you for signing the Contributor License Agreement!

Comment From: sdeleuze

I think using directly the field state to check for the status is ok in that case. It is a little bit less readable, bit a little bit more optimized, so I will keep what we have and decline this PR.