[JAIEXT-30] Remove legacy code

Please look at the following JIRA: https://geosolutions.atlassian.net/browse/JAIEXT-30.