Remove irrelevant public folder.

Signed-off-by: crynobone <crynobone@gmail.com>
Refactor code.

Signed-off-by: crynobone <crynobone@gmail.com>
Reduce method complexity.

Signed-off-by: crynobone <crynobone@gmail.com>