Move converter method to src/main/java class